package com.proxy;

/**
 * Created by Administrator on 2016/9/21.
 */
public class Test {
    public static void main(String[] args) {
        DynamicProxy dynamicProxy = new DynamicProxy(new HelloImpl());
        Hello helloProxy = dynamicProxy.getProxy();
        helloProxy.say("liam");


        Hello hello = CGLibProxy.getInstance().getProxy(HelloImpl.class);
        hello.say("jack");
    }
}
